# establish default values for PCR or MIP designmodes
from multiprocessing import cpu_count
def default_values(designmode):
    if designmode == "PCR":
        defaults= {'MinGC': 30,\
                   'MaxGC': 70,\
                   'MinTm': 30,\
                   'MaxTm': 70,\
                   'MinLen': 20,\
                   'MaxLen': 22,\
                   'Epos': 50,\
                   'Smin': 200,\
                   'Smax': 300,\
                   'Olap': 45,\
                   'dna': 250,\
                   'Na': 50,\
                   'K': 0,\
                   'Tris': 0,\
                   'Mg': 1.5,\
                   'dNTP': 0.2,\
                   'DMSO': 0,\
                   'cores': cpu_count(),\
                   'pntcutoff': 3.5,\
                   'repeats': "score"}
        return defaults

    elif designmode == "MIP":
        defaults= {'MinGC': 30,\
                'MaxGC': 70,\
                'MinTm': 30,\
                'MaxTm': 70,\
                'MinLen': 18,\
                'MaxLen': 22,\
                'Epos': 50,\
                'Smin': 100,\
                'Smax': 400,\
                'Olap': 45,\
                'dna': 10,\
                'Na': 5,\
                'K': 27,\
                'Tris': 23,\
                'Mg': 10,\
                'dNTP': 0.3,\
                'DMSO': 0,\
                'REdict': {'Nt.BspQI':['gctcttc', 1],\
                           'Nb.BsrDI': ['gcaatg', 1]},\
                'Arm_max': 40,\
                'PriF': 'accaggtgctcttct',\
                'Middle': 'tcctcctcctccgtttaaaccgtcgcctcg',\
                'PriR': 'cattgctaacgtcgc',\
                'Oligo_len': 100,\
                'cores': cpu_count(),\
                'pntcutoff': 3.5,\
                'repeats': "remove"}
        return defaults
